#ifndef hal_socket_H
#define hal_socket_H

#include "cfg_param.h"
#include "hal_tlv.h"

// 串口类型
typedef enum
{
    USART_TYPE_1 = 1,
    USART_TYPE_2,
    USART_TYPE_NONE
} UsartTypeEn;

void hal_SendPacketToUSART(struct TLVPacket *packet);

void hal_UsartSendBuffer(uint8_t *pdata_in, uint16_t len, UsartTypeEn UsartNum);

void enqueue(struct PacketQueue *queue, struct TLVPacket *packet);
void dequeue(struct PacketQueue *queue, struct TLVPacket *packet);
_Bool isQueueEmpty(struct PacketQueue *queue);

void ModuleDivide(struct TLVPacket *packet);

#endif